package com.example.sxmall.dao.mapper;

import com.example.sxmall.dao.pojo.Order_shoes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface Order_shoesMapper {
    /**
     * 查看订单列表
     * @return
     */
    public List<Order_shoes> listOrder_shoes();

    /**
     * 根据ID查询
     * @param osid
     * @return
     */
    public Order_shoes findOrder_shoesById(@Param("osid") Integer osid);

    /**
     * 根据订单ID查询
     * @param o_oid
     * @return
     */
    public List<Order_shoes> findOrder_shoesByOid(@Param("o_oid") Integer o_oid);

    /**
     * 添加
     * @param order_shoes
     * @return
     */
    public int insertOrder_shoes(@Param("order_shoes") Order_shoes order_shoes);

    /**
     * 删除
     * @param osid
     * @return
     */
    public int deleteOrder_shoes(@Param("osid") int osid);

    /**
     * 动态修改
     * @param order_shoes
     * @return
     */
    public int updateOrder_shoes(@Param("order_shoes") Order_shoes order_shoes);
}
